<?php
class Zendvn_View_Helper_CmsImage extends Zend_View_Helper_Abstract {
	
	//$this->formRadio($name,$value,$attribs,$options, $listep);
	/*$attribs = array(
					'icon'=>'icon-32-delete.png',
					'iconDir'=>'images/toolbar/',
				)*/
	//$options = array('type'=>'submit','name'=>'appForm');
	public function cmsImage($name,$value = null, $attribs = null, $options = null) {
		
		if(count($attribs)>0){
			foreach ($attribs as $key => $val){
				$strAttribs .= ' ' . $key  . '="' . $val . '" ';
			}
		}
		
		$name = ' id="' . $name . '" name="' . $name . '" ';
		
		$xhtml = '<img ' . $name . ' ' .$strAttribs . ' src="' . $value . '">';
	
		
		return $xhtml;
	}
}